SET(CLIENTE_LIB_SRC
  ControlRPC.h
  ControlRPCCliente.cpp
  control_clnt.cpp
  control_xdr.cpp)

SET(CLIENTE_SRC 
  control_client.cpp
  ${CLIENTE_LIB_SRC})

SET(SERVER_SRC
  ControlRPCServer.cpp
  control_svc.cpp
  control_server.cpp
  control_xdr.cpp)

ADD_LIBRARY(rpc_cliente_library ${CLIENTE_LIB_SRC})

ADD_EXECUTABLE(control_client ${CLIENTE_SRC})
TARGET_LINK_LIBRARIES(control_client rpc_cliente_library)

ADD_EXECUTABLE(control_server ${SERVER_SRC})
TARGET_LINK_LIBRARIES(control_server mensajes_library ipc_library usuario_library log_library)

ADD_EXECUTABLE(notificador.out notificador.cpp)
TARGET_LINK_LIBRARIES(notificador.out ipc_library log_library tcp_library mensajes_library usuario_library)

ADD_EXECUTABLE(notificador_server.out notificador_server.cpp)
TARGET_LINK_LIBRARIES(notificador_server.out log_library tcp_library)
